import unittest

class AccountTests(unittest.TestCase):

    def test_getData(self):
        from database import Account, Money, Currency

        account = Account("name")
        account.id = 1
        account.initialAmounts = [Money(10, Currency("UAH"))]

        result = account.getData()
        self.assertEqual(result._id, 1)
        self.assertEqual(result._name, "name")
        self.assertEqual(len(result._initialAmounts._money), 1)